<template>
	<div class="app">
		<h2>我是App组件</h2>
		<Child @click.native="test"/>
	</div>
</template>

<script>
	import Child from './components/Child'

	export default {
		name:'App',
		components:{Child},
		methods: {
			test(){
				console.log('App中的test调用了')
			}
		},
	}
</script>

<style>
	.app{
		background-color: gray;
		padding: 30px;
	}
</style>